Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 5 - Printing Functions for Message Overrides / Printing Functions Reference
Functions / Managing Paper Trays


GXGetTrayName

You can use the GXGetTrayName function to retrieve the name of a specified paper tray on the printer.

OSErr GXGetTrayName (gxTrayIndex whichTray, Str31 trayName);
whichTray
The number of the tray in which you are interested.
trayName
On return, the name of the specified tray. This parameter is a string that you have already allocated.
function result
An error code. The value noErr indicates that the operation was successful.
DESCRIPTION
The GXGetTrayName function fills in the trayName string with the name of the specified tray on the printer. This information is retrieved by calling the GXFetchTaggedData function.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.
SEE ALSO
The GXFetchTaggedData function is described in Inside Macintosh: QuickDraw GX Environment and Utilities.

You can read about managing paper trays in the section "Managing Paper Trays and Their Paper Types" beginning on page 5-5.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help